<include file='Public:Header' />
<div id=main_content>
<h2 class="grid_12"><!--添加网站 --></h2>
<div class=clean></div>

<div class="grid_11">
<div class="box">
<div class="header"> <img src="__ROOT__/Public/images/application-form.png" alt="" width=16 height=16>
<h3>添加网站</h3>
</div>
<form id="addsite1" class="addsite" method="post" action="__URL__/addSite2">
<!-- step 1 begin -->
<div class="content no-padding stepone">
<h3 class="adds_title top">1. 网站管理信息 </h3>

<div class="section _100">
<label> 网站地址：</label>
<div>
<input class="" name="site_url" id="site_url" value="{$siteinfo['site_url']}"  placeholder="请输网站地址" />
</div>
</div>
<div class="section _100">
<label> 网站标题：</label>
<div>
<input class="" name="site_title" id="site_title" value="{$siteinfo['site_title']}"  placeholder="请输入网站标题" />
</div>
</div>

<div class="section _100">
<label> 管理员账号：</label>
<div>
<php>if(empty($siteinfo['host_username'])){</php>
<input class="" name="host_username" id="host_username"  placeholder="请输入管理员账号" value="admin" />
<php>}else{ </php>
<input class="" name="host_username" id="host_username"  placeholder="请输入管理员账号" value="{$siteinfo['host_username']}" />
<php>}</php>
</div>
<div class="alts">( 默认：admin )</div>
</div>
<div class="section _100">
<label> 管理员密码：</label>
<div>
<php>if(empty($siteinfo['host_psw'])){</php>
<input class="" type="password" name="host_psw" id="host_psw"  placeholder="请输入管理员密码" value="123123" />
<php>}else{ </php>
<input class="" type="password" name="host_psw" id="host_psw"  placeholder="请输入管理员密码" value="{$siteinfo['host_psw']}" />
<php>}</php></div>
<div class="alts">( 默认：123123 )</div>
</div>
<div class="section _100">
<label> 管理员邮箱： </label>
<div>
<input class="" id="host_address" name="host_address"  placeholder="请输入管理员邮箱" value="{$siteinfo['host_address']}" />
</div>
</div>
<h3 class="adds_title">2.数据库信息: </h3>
<div class="section _100">
<label> 主机地址: </label>
<div>
<input class="" id="database_url" name="database_url" value="{$siteinfo['database_url']}"  placeholder="请输入主机地址" />
</div>
<div class="alts">( <b>注: 不带 http:// </b> 例如：www.example.com )</div>
</div>
<div class="section _100">
<label> 数据库名: </label>
<div>
<input class="" id="database_name" name="database_name"  placeholder="请输入数据库名称" value="{$siteinfo['database_name']}" />
</div>
</div>
<div class="section _100">
<label> 用 户 名: &nbsp;</label>
<div>
<input class="" id="database_username" name="database_username"  placeholder="请输入用户名" value="{$siteinfo['database_username']}" />
</div>
</div>
<div class="section _100">
<label> 密&nbsp;&nbsp;码:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </label>
<div>
<input type="password" class="" id="database_psw" name="database_psw"  placeholder="请输入数据库密码" value="{$siteinfo['database_psw']}" />
</div>
</div>
<h3 class="adds_title">3. FTP信息 </h3>
<div class="section _100">
<label> FTP 地 址： </label>
<div>
<input class="" name="ftp_dir" id="ftp_dir" value="{$siteinfo['ftp_dir']}"  placeholder="请输入主机地址" />
</div>
<div class="alts">( <b>注: 不带 http:// </b> 例如：www.example.com )</div>
</div>
<div class="section _100">
<label> FTP 账 号： </label>
<div>
<input class="" name="ftp_user" id="ftp_user" value="{$siteinfo['ftp_user']}"  placeholder="请输入FTP用户名" />
</div>
</div>
<div class="section _100">
<label> FTP 密 码： </label>
<div>
<input type="password" class="" id="ftp_psw" value="{$siteinfo['ftp_psw']}" name="ftp_psw"  placeholder="请输入FTP密码" />
</div>
</div>
<div class="section _100">
<label> 安装路径： </label>
<div>
<input id="install" type="text" value="{$siteinfo['install']}" class="" name="install"  placeholder="请在右边点击按钮选择安装路径" disabled="disabled" />
<div style="width:500px; height:100%;" id="ftp_trees">
</div>
</div>
<div class="alts" style="margin-left:0; margin-top:0;">
<input style="float:left;" type="button" value="选择" name="" id="filedir" autocomplete="off"  />
<span id="showftp" class="hiddes" style="float:left; line-height:45px; margin-left:10px;"><img src="__ROOT__/Public/images/loading2.gif" alt="loading..." />正在获取您的FTP文件目录，请耐心等待...</span>
<span id="ftp_error" class="hiddes" style="float:left; line-height:45px; margin-left:10px;">FTP链接失败！请检查您的FTP信息是否正确.</span>
</div>
</div>
</div>
<div class="actions stepone">
<div class=actions-left>
<input type="reset" value="重置" onclick="clearform();" />
</div>
<div class=actions-right>
<input type="submit" value="下一步" name="submit" id="sub" />
</div>
</div>
<!-- step 1 end -->
</form>
</div>
</div>
<div class=clear></div>
</div>
<include file="Public:Footer" />